exports.items = function(input) {
  var items = [];
  for (key in input) {
    items.push({key: key, value: input[key]});
  }
  return items;
};